/**
 * @description 单例基类
 * @author mirahs
 * @email 2892727493@qq.com
 */
export default class Singleton {
    private static _instance: any

    protected static getInstance<T>(): T {
        if (!this._instance) {
            this._instance = new this()
        }

        return this._instance
    }

    protected constructor() { }
}
